<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>test input</title>
		<script type="text/javascript" src="../js/jquery-3.3.1.slim.min.js"></script>
		<link type="text/css" rel="stylesheet" href="../css/common.css" />
		<link type="text/css" rel="stylesheet" href="../css/bootstrap.min.css" />
		<style type="text/css">
			body{
				background-color: #21303E;
			}
		</style>
	</head>
	<body>
		<div>
			<input maxlength="10" id="testStr" />
		</div>
		<div>
			<button class="btn-danger" onclick="testRegex()">regex</button>
		</div>
	</body>
	<script type="text/javascript">
		function testRegex() {
			var inputVal = $("#testStr").val();
			var regex = /^[\u2E80-\u9FFF\sa-z0-9_-]{1,10}$/;
			var result = regex.test(inputVal);
			console.log(result);
		}
	</script>
</html>
